using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[RequireComponent(typeof(Camera))]
public class SetCameraDepthModel : MonoBehaviour
{
    public DepthTextureMode depthTextureMode = DepthTextureMode.Depth;
    public Camera mainCamera;
    // Start is called before the first frame update
    void Start()
    {
        mainCamera = GetComponent<Camera>();
        mainCamera.depthTextureMode = depthTextureMode;
    }
    private void Update()
    {
        mainCamera.depthTextureMode = depthTextureMode;
    }


}
